#newl cd /d "#path" --used for subtitle, location without path--
#newl "#ppthapps\ffmpeg\ffmpeg.exe" |-program file-
-i "#item" |-i "#item" -i "#path#name.mp2" |-i "#item" -i "#path#name.mp3" |-i "#item" -i "#path#name.aac" |-i "#item" -i "#path#name.wav" |-i "#item" -i "#path#name.mpa" |-i "#item" -r 1 -loop_input -i "d:\picture.jpg" -shortest |-input, or encode with alternate audio source file-
-vcodec mpeg4 -vtag XVID |-vcodec libxvid -vtag XVID |-vcodec copy |-vn |-vcodec libx264 |-vcodec-
-q:v 3.3 |-b:v 1000k |-b:v 500k |-crf 20 |-crf 22 |-crf 20 -preset slow |-vcodec rawvideo -pix_fmt bgr24 |--video bitrate, use crf for x264, -crf 20 is better quality--
#remark -scaling_type-|-sws_flags fast_bilinear |-scaling type-
-acodec mp2 |-acodec libmp3lame |-acodec copy |-acodec pcm_s16le |-acodec aac -strict experimental |-acodec libvorbis |-an |--Acodec. Use mkv or mp4 as output when using aac.--
-b:a 160k |-b:a 128k |-b:a 96k |-b:a 192k |-b:a 64k |-aq 6 |-aq 5 |--audio codec bitrate. Vorbis: aq5= ~128, aq6= ~224--
#remark -channels-|-ac 1 |-ac 2 |-channels-
#remark -resample_audio-|-ar 22050 |-ar 44100 |-ar 48000 |--resample audio--
-vf scale=512:-1 |-vf scale=480:-1 |-vf scale=320:-1 |-vf scale=640:-1 |-vf scale=-1:720 |-vf scale=-1:576 |-vf scale=-1:480 |-resize, with aspect ratio-
#remark -start_time-|-ss 00:02:40 |-Start time. Optional. HH:MM:SS-
#remark -end_time-|-t 10 |-t 5 |-vframes 250 |-endtime-
#remark -overwrite_file-|-y |-overwrite existing file-
#remark -output_fps-|-r 24 |-r 23.97 |-r 25 |-r 29.97 |-r 30 |-r 24000/1001 |--output fps--
#remark -crop- | -vf crop=1000:768:00:0 | --crop image--
#remark brighten video |-vf eq=gamma=3:saturation=2 |--increase gamma (brighter), and saturation (more vivid colors)--
#remark rotate (transpose) video |-vf transpose=0 |-vf transpose=2 |-vf eq=gamma=3,transpose=2 |--use 'transpose' for rotation, values 0,1,2,3. Use 'gamma' to brighten the video--
#remark subtitle add |-vf subtitles="#name.srt" |--subtitle--
"#path#name-ffm.avi" |"#path#name-ffm.mkv" |"#path#name-ffm.mp4" |-output-

<comment>
Create divx movie using ffmpeg. 
Slower than mencoder.
You should use HandbrakeCLI for h264.
You can also use filters, like transpose for rotation, or gamma for brightness.



https://trac.ffmpeg.org/wiki/Encode/H.264
ffmpeg -i input -c:v libx264 -preset slow -crf 22 -x264opts keyint=123:min-keyint=20 -c:a copy output.mkv

filters
https://ffmpeg.org/ffmpeg-filters.html#Video-Filters
gama: 0.1 to 10, def 1
contrast -2,2 1
brightness -1,1 0
saturation 0,3 1

to use two filters, separate them by coma, or semicolon